package structure.decorator;

/**
 * 武将装饰器
 */
public abstract class WujiangDecortor implements WujiangComponent {
    private WujiangComponent wujiangComponent;

    public WujiangDecortor(WujiangComponent wujiangComponent) {
        this.wujiangComponent = wujiangComponent;
    }
    @Override
    public void attack() {
        wujiangComponent.attack();
    }
    @Override
    public void move() {
        wujiangComponent.move();
    }
    @Override
    public  void defense(){
        wujiangComponent.defense();
    }
}

